package com.cskaoyan.market.controller;

import com.cskaoyan.market.service.WxBrandService;
import com.cskaoyan.market.util.ResponseUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Project:Project2
 * @Title:WxBrandController
 * @Package:com.cskaoyan.market.controller
 * @Author:Cl
 * @Date :2024/5/21 14:12
 */
@RestController
@RequestMapping("wx/brand")
public class WxBrandController {
    @Autowired
    WxBrandService wxBrandService;
    @GetMapping("list")
    public Object list(){
        return ResponseUtil.okList(wxBrandService.list());
    }
    @GetMapping("detail")
    public Object detail(Integer id){
        return ResponseUtil.ok(wxBrandService.detail(id));
    }
}
